package org.example.protocol.structs;

import lombok.Data;
import java.util.Map;
import cn.hutool.core.map.MapUtil;
import org.artifact.core.lang.DTO;
@Data
/**
 * 玩家信息
 */
public class PlayerDTO implements DTO{
	/** 基本信息 */
	private PlayerInfoDTO playerInfo;

	public Map<Object, Object> toMap(Map<Object, Object> map){
		map.put(2095520559,this.playerInfo);
	    return map;
	}

	public PlayerDTO forMap(Map<Object, Object> map){
        this.playerInfo = MapUtil.get(map ,2095520559,PlayerInfoDTO.class);
        return this;
    }
}